package com.avecsys.quotemanager.service.user;

import com.avecsys.quotemanager.exception.BusinessException;
import com.avecsys.quotemanager.pojos.SupplierMasterPojo;
import com.avecsys.quotemanager.pojos.UserMasterPojo;

public interface UserMasterService {

	/**
	 * Method to save the supplier user information
	 * 
	 * @param userMasterPojo
	 * @return Integer
	 * @throws BusinessException
	 */
	public Integer saveSupplierUser(UserMasterPojo userMasterPojo)
			throws BusinessException;

	/**
	 * Method to return the userMasterPojo instance by id
	 * 
	 * @param userId
	 * @return UserMasterPojo
	 * @throws BusinessException
	 */
	public UserMasterPojo getUserMasterById(Long userId)
			throws BusinessException;

	/**
	 * Method to delete the supplier user information by user id
	 * 
	 * @param supplierMasterPojo
	 * @param userId
	 * @return Integer value of transaction status
	 * @throws BusinessException
	 */
	public Integer deleteSupplierUser(SupplierMasterPojo supplierMasterPojo,
			Long userId) throws BusinessException;

}
